﻿// Author: Jithu Jose, Email: jithu89@hotmail.it
// 
// This file is part of Schedule.
//
// Schedule is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Schedule is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with Schedule.  If not, see <http://www.gnu.org/licenses/>.

namespace JJware.Schedule
{
    using System;

    /// <summary>
    /// Represents a single item in the list view.
    /// </summary>
    public class ItemInfo
    {
        #region Fields

        /// <summary>
        /// Path of the file or program
        /// </summary>
        private string _path;

        public string Path
        {
            get
            {
                return _path;
            }
            set
            {
                _path = value;
            }
        }
        /// <summary>
        /// Start time
        /// </summary>
        private DateTime _time;

        public DateTime Time
        {
            get
            {
                return _time;
            }
            set
            {
                _time = value;
            }
        }

        #endregion Fields

        #region Constructors

        /// <summary>
        /// </summary>
        /// <param name="path">Path of the item</param>
        /// <param name="time">Start time</param>
        public ItemInfo(string path, DateTime time)
        {
            Path = path;
            Time = new DateTime(DateTime.Now.Year, DateTime.Now.Month,
                DateTime.Now.Day, time.Hour, time.Minute, time.Second);
        }


        public ItemInfo()
        {
            Path = "";
        }

        #endregion Constructors
    }
}